package com.lagou.service.impl;

import com.lagou.service.CatService;
import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Service;

import java.util.Random;

@Service
public class CatServiceImpl implements CatService {
    @Override
    public String catHello(String name) {
        try {
            Random random = new Random();
            int i = random.nextInt(100);
            Thread.sleep(i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello: cat";
    }
}
